from django import forms
from django.contrib.auth.models import User
from timesheet.models import Activity
from timesheet.models import Project
from timesheet.models import Time


class FinancierMediaForm(forms.Form):
    class Media:
        css = {
            'all': ('css/financier/style.css',)
            }
        js = ('js/financier.js', 'js/jquery-1.4.2.js')


class FinancierChoiceForm(forms.Form):
    CHOICES = (
            ('0', '---------'),
            ('1', 'user::initialDate::endDate'),
            ('2', 'user::projects::initialDate::endDate'),
            ('3', 'projects::initialDate::endDate'),
        )
    choices = forms.ChoiceField(widget=forms.Select(attrs={'id': 'choices',
                                'onChange': 'select_form(this.value, data)'}),
                                choices=CHOICES)

